
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       
    </style>
    <script src="./dist/vue.js"></script>
</head>
<body>
    <div id="root"></div>
    
</body>
<script>
  
  const app = Vue.createApp({
    created(){
      
    },
      data(){
          return {
            text: 'testtttstsss'
          }
      },
     
      methods:{
        
      },
      template:
      ` 
      <div>{{ number }}</div>
      <demo></demo>
      <div class='teleport'></div>
      <div class='wrapper'>
          <div>
          <button @click='clickHandler'>按钮</button>
          </div> 
          <teleport to='.teleport'>
            <div class='tele'>传送门DOM - {{ text }}</div>
            </teleport>
          </div>
      `
  });

  app.component('demo', {
      template:
        `
         `
  });

  app.config.optionMergeStrategies.stuName = (mixValue, appValue, vm) => {
    return mixValue || appValue 
  }
    const vm = app.mount("#root");
</script>
</html>